from django.db import models

# Create your models here.
from django.db import models


# 班级模型
class Grades(models.Model):
    gname = models.CharField(max_length=20, verbose_name='班级名')

def __str__(self): return self.gname @ classmethod


def createGrade(cls, gname, gdate, ggirlnum,isDelete=False):
    grade = cls(gname=gname)
    return grade


# 学生班级
class Students(models.Model): sname = models.CharField(max_length=20)


def __str__(self): return self.sname @ classmethod


def createStudents(cls, name):
    stu = cls()
    stu.sname = name
    return stu
